﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ZK.YHP_TransManage.Test
{
    public partial class 上海耀华磅表 : Form
    {
        HardWareBLL.A9WagonBalanceBLL sHYHXK3190A;
        public 上海耀华磅表()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Common.DelegateHelper.A9Event += aa;
            sHYHXK3190A = new HardWareBLL.A9WagonBalanceBLL();
        }

        private void aa(double weight)
        {
            this.Invoke(new Action(() =>
            {
                this.textBox1.AppendText("---" + weight + "\n");
            }));
        }
    }
}
